home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 44
/
Amiga Format CD44 (1999-08-26)(Future Publishing)(GB)(Track 1 of 3)[!][issue 1999-10].iso
/
-serious-
/
wb
/
merlin
/
rexx
/
guildertoeuro.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1999-07-12
|
788b
|
44 lines
/* RUN "rx MCP:rexx/GuilderToEuro.rexx %n" */
Arg node_number /* node we were run from */
Host = 'MCPREXX.'node_number /* the Trion MCP Arexx port */
Options results
Address value host
options failat 15
/* say "node "node_number */
if node_number = "" then do
say "error .. rexx script not started with %n on command line"
exit 1
end
ReadString "ID 11"
Guilders = result
if Guilders < 0 then do
Guilders = 0
WriteString "11" Guilders
end
/* say "guilders:" Guilders */
Euros = Trunc( 0.5 + 100 * Guilders / 2.20371 ) / 100
/* say "euros:" Euros */
/* WriteString '12, Euros' */
WriteString "ID 12 STRING " Euros
exit 0 /* einde programma */
test: /* een functie: 'call test' */
return 0